import request from "../common/axios";

/**
 * 获取表格数据
 * @param data
 * @returns {AxiosPromise}
 */
export function getChartData(data) {
    return request({
        url: '/d/con_bigdata/chartinfo',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}

/**
 * 刷新表格数据
 * @param data
 * @returns {AxiosPromise}
 */
export function flushChartData(data) {
    return request({
        url: '/d/con_bigdata/flushdata',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}


/**
 * 检索黑广播种类
 * @param data
 * @returns {AxiosPromise}
 */
export function selectCategory(data) {
    return request({
        url: '/d/con_bigdata/chartinfo',
        method: 'post',
        data,
        headers: {'Content-Type': 'application/json'}
    });
}

/**
 * 获取热力图
 * @param data
 * @returns {AxiosPromise}
 */
export function getHeatMapData(data) {
    return request({
        url: '/d/con_bigdata/heatmap',
        method: 'get',
        params: data,
        headers: {'Content-Type': 'application/json'}
    });
}


/**
 * 检索热力图
 * @param data
 * @returns {AxiosPromise}
 */
export function selectHeatMapData(data) {
    return request({
        url: '/d/con_bigdata/heatmap',
        method: 'post',
        data,
        headers: {'Content-Type': 'application/json'}
    });
}